package org.ben.domain.strategypattern;

import java.math.BigDecimal;

public abstract class Product {
    private String name;
    private BigDecimal price;
    private TaxPolicy<BigDecimal> taxPolicy;

    public Product(String name, BigDecimal price, TaxPolicy<BigDecimal> taxPolicy) {
        this.name = name;
        this.price = price;
        this.taxPolicy = taxPolicy;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public TaxPolicy<BigDecimal> getTaxPolicy() {
        return taxPolicy;
    }

    public void setTaxPolicy(TaxPolicy<BigDecimal> taxPolicy) {
        this.taxPolicy = taxPolicy;
    }
}
